import React from 'react';
import {View} from '@tarojs/components';
// import Taro from '@tarojs/taro';
import './FixedButton.scss'

interface FixedBottonProps{
  comId:number,
}

const FixedButton:React.FC<FixedBottonProps> = (props) => {
  const {comId} = props;
  const targetYouZan = ():any => {
      //跳转有赞
    console.log(comId);
    window.location.href="https://shop45618132.m.youzan.com/v2/goods/2xaf5v7u7kqng6n";
  }
  return (
    <View className='fixedBottomBox' onClick={targetYouZan}>
      <View className='Button'>购买</View>
    </View>
  )
}


export default FixedButton;
